package alp.starcode.sanping.framework.constant;

/**
 * 系统常量表
 *
 * @author liwang
 */
public final class Constant {

    private Constant(){}

    /**
     * 角色类型
     */
    public static final String ROLE_TYPE_SYSTEM = "系统角色";
    public static final String ROLE_TYPE_BUSINESS = "业务角色";

    /**
     * 移动方向
     */

    public static final String MOVE_UP = "UP";
    public static final String MOVE_DOWN = "DOWN";

    /**
     * 数据来源
     */
    public static final String DATASOURCE_MANUAL_ADDITION = "手动添加";

    public static final String DATASOURCE_INTRANET_NET = "内网同步";

    /**
     * 功能类型
     */
    public static final String FUNCTION_TYPE_MENU = "菜单";
    public static final String FUNCTION_TYPE_BUTTON = "按钮";
    public static final String FUNCTION_TYPE_DIRECTORY = "目录";
    public static final String FUNCTION_TYPE_EXTERNAL_LINK = "外链";
    public static final String FUNCTION_TYPE_SINGLE_PAGE = "单页";


    /**
     * 登录用户缓存信息key
     */

    /**
     * 当前登录用户动态菜单信息存入缓存的key
     */
    public static final String LOGIN_USER_FUNC_CACHE_KEY = "LOGIN_USER_SYS_FUNC:";

    /**
     * 登录用户接口权限信息缓存的key
     */
    public static final String LOGIN_USER_INTERFACE_CACHE_KEY = "LOGIN_USER_INTERFACE:";

    /**
     * 登录用户信息缓存的key
     */
    public static final String LOGIN_USER_CACHE_KEY = "LOGIN_USER:";

    /**
     * 接口信息缓存key
     */
    public static final String INTERFACE_CACHE_KEY = "INTERFACE:";


    /**
     * 接口类型
     */

    /**
     * 公开接口，不进行uri鉴权
     */
    public static final String INTERFACE_TYPE_PUBLIC = "public";

    /**
     * 私有接口，需uri鉴权
     */
    public static final String INTERFACE_TYPE_PRIVATE = "private";


    /**
     * 数据权限
     */
    public static final String PERMISSIONS_SUPER = "上级";
    public static final String PERMISSIONS_CURRENT_LEVEL = "本级";
    public static final String PERMISSIONS_LOWER = "下级";

    /**
     * 默认角色id
     */
    public static final String DEFAULT_ROLE_ID = "82939b03-0a99-4a45-821a-4fdcde9fa066";


}
